﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GestionPedago.Services.ES.Modele;

namespace GestionPedago.Services.ES {
    public class CoursESComparer : IComparer<CoursES> {

        #region IComparer<CoursES> Membres

        public int Compare(CoursES x, CoursES y) {
            if(x != null) {
                if(y != null) {
                    return x.Debut.CompareTo(y.Debut);
                }
                return 1;
            } else if(y != null) {
                return -1;
            }
            return 0;
        }

        #endregion
    }
}
